<?php
/**
 * @package WordPress
 * @subpackage Freshine
 * @since Freshine 1.1.0
 */

get_header(); ?>

	<div id="f9-mainbody" class="wrap">
		<div class="main clearfix">
			<?php get_sidebar( 'left' );?>
			<div id="f9-container" class="<?php f9_container_class() ?>">
            	<?php get_sidebar( 'content-top' );?>
				<div id="f9-content">
					<?php if ( have_posts() ) the_post() ?>
					
                    <h1 class="page-title">
		<?php if ( is_day() ) : ?>
                        <?php printf( __( 'Daily Archives: <span>%s</span>', 'f9vn' ), get_the_date('F j, Y') ); ?>
        <?php elseif ( is_month() ) : ?>
                        <?php printf( __( 'Monthly Archives: <span>%s</span>', 'f9vn' ), get_the_date('F Y') ); ?>
        <?php elseif ( is_year() ) : ?>
                        <?php printf( __( 'Yearly Archives: <span>%s</span>', 'f9vn' ), get_the_date('Y') ); ?>
        <?php else : ?>
                        <?php _e( 'Blog Archives', 'f9vn' ); ?>
        <?php endif; ?>
                    </h1>
					
					<?php rewind_posts(); ?>
					
					<?php f9_content_nav( 'nav-above' ) ?>
					<?php while ( have_posts() ) : the_post(); ?>
					
                    <?php get_template_part( 'content', get_post_format() ); ?>
					
					<?php endwhile; ?>
					<?php f9_content_nav( 'nav-below' ) ?>
					
				</div><!-- #f9-content -->
				<?php get_sidebar( 'content-bottom' );?>
			</div><!-- #f9-container -->
            <?php get_sidebar( 'right' );?>
		</div>
	</div><!-- #f9-mainbody -->

<?php get_footer(); ?>